package com.example.activity.dao;

import com.example.activity.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper {
    int deleteByPrimaryKey(Long activityId);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Long activityId);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKeyWithBLOBs(Activity record);

    int updateByPrimaryKey(Activity record);

    List<Activity> selectActivityPaginationList(@Param("offset") int offset,@Param("limit") Integer limit);

    int selectActivityListCount();

    List<Activity> selectActivityListPage(@Param("offset")int offset,@Param("limit") int limit);

    int selectActivityPageCount();

}